package com.sk.bilibili.view.diy.bottomDialog;

import android.view.View;

import com.sk.bilibili.R;
import com.sk.bilibili.model.diy.bottomDialog.ThemModel;
import com.sk.bilibili.model.diy.bottomDialog.VideoSetModel;

public class ThemBottomDialog extends BaseBottomDialog<ThemModel>
        implements View.OnClickListener{

    private Integer themId;

    public ThemBottomDialog(Integer themId) {
        this.themId = themId;
    }

    @Override
    public int getLayoutRes() {
        return R.layout.bottom_dialog_them;
    }

    @Override
    protected int[] getClickIds() {
        return new int[]{R.id.tv_share_dynamic,R.id.tv_share_more,R.id.tv_follow,R.id.tv_save,
                R.id.tv_copy_url,R.id.tv_cancel};
    }

    @Override
    protected void onClick(int id) {
        switch (id){
            case R.id.tv_share_dynamic:
                showInputDialog();
                break;
            case R.id.tv_share_more:
                model.shareMore(themId);
                break;
            case R.id.tv_copy_url:
                model.copyUrl(themId);
                toast("已经复制到剪切板");
                break;
            case R.id.tv_follow:
                model.followThem(themId);
                break;
            case R.id.tv_save:
                toast("TODO:缓存");
                break;
            case R.id.tv_cancel:
                dismiss();
                break;
        }
    }

    private void showInputDialog() {
        toast("TODO 输入评论转发动态");
    }

}